﻿using Grow.Domain.EventBus.Cap.PublisherDomainEvents;

namespace Grow.Domain.EventBus.Cap.DomainEventSend
{
    public interface IDomainEventSend
    {
        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="publisherDomainEventDto"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task SendAsync(PublisherDomainEventDto publisherDomainEventDto, CancellationToken cancellationToken = default);
    }
}
